package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_orders")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "订单",description = "")
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;   //商品名称

    @TableField(value = "total_price")
    private BigDecimal totalPrice;   //商品价格
    @TableField(value = "pay_price")
    private BigDecimal payPrice;  //支付价格

    private String orderNo;   //订单编号
    @TableField(value = "user_id")
    private Integer userId;  //支付id
    private String username;  //支付姓名

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "pay_time")
    private Date payTime;
    private Integer status;

}
